package com.hymjweb.demo.hymj.master_bill_manage.pull.detail.bean;

import com.hymjweb.demo.framework.util.pojoContrast.FieldMeta;
import com.hymjweb.demo.hymj.master_bill_manage.load.bean.BNativeBillLoadPojo;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * @BelongsProject: demo
 * @BelongsPackage: com.hymjweb.demo.hymj.master_bill_manage.pull.detail.bean
 * @Author: luoge
 * @CreateTime: 2020-12-30 16:43
 * @Description:
 */
@Table(name = "b_master_bill_pull_detail")
@Data
public class BMasterBillPullDetailPojo implements Serializable {

    @FieldMeta(columnname = "id", name = "主单拉货明细表ID")
    private String id;

    @FieldMeta(columnname = "master_bill_pull_id", name = "主单拉货主表ID", comment = "主单拉货主表ID,关联b_master_bill_pull.id")
    private String masterBillPullId;

    @FieldMeta(columnname = "native_bill_id", name = "分单ID", comment = "分单ID,关联b_native_bill.id")
    private String nativeBillId;

    @FieldMeta(columnname = "pull_number", name = "分单拉货件数" )
    private Long pullNumber;

    @FieldMeta(columnname = "pull_actual_weight", name = "分单拉货实重" )
    private Double pullActualWeight;

    @FieldMeta(columnname = "pull_chargeable_weight", name = "分单拉货计重" )
    private Double pullChargeableWeight;

    @FieldMeta(columnname = "pull_volume", name = "分单拉货体积" )
    private Double pullVolume;

    @FieldMeta(columnname = "pull_amount", name = "分单拉货金额", comment = "分单拉货金额,客户补费记正值,退客户费用记负值")
    private Double pullAmount;

    @FieldMeta(columnname = "pull_comment", name = "分单拉货说明")
    private String pullComment;

    @FieldMeta(columnname = "pull_dispose_id", name = "拉货处置类型ID",comment = "拉货处置类型ID,关联xt_dic.id key='XT_DIC_NATIVE_PULL_DISPOSE'")
    private Long pullDisposeId;

    @FieldMeta(columnname = "pull_dispose_airport_id", name = "拉货处置始发机场ID",comment = "拉货处置始发机场id,关联xt_airport.id,可以为 null")
    private String pullDisposeAirportId;

    @FieldMeta(columnname = "pull_dispose_airlines_id", name = "货处置航空公司id",comment = "拉货处置航空公司id,关联xt_airlines.id,可以为 null")
    private String pullDisposeAirlinesId;

    @FieldMeta(columnname = "pull_dispose_flight_no", name = "拉货处置班次号",comment = "拉货处置班次号,航空分单关联xt_flight.id,汽运分单为null")
    private String pullDisposeFlightNo;

    @FieldMeta(columnname = "pull_dispose_flight_name", name = "拉货处置班次名称",comment = "拉货处置班次名称,航空类型如MU1234，汽运类型如苏B1234")
    private String pullDisposeFlightName;

    @FieldMeta(columnname = "pull_dispose_flight_date", name = "拉货处置班次日期")
    private Date pullDisposeFlightDate;

    @FieldMeta(columnname = "pull_dispose_reason_ids", name = "主单位货原因IDS,关联 xt_dic.id,key=XT_DIC_DISPOSE_REASON,注意这个 ID 存储为 id1,id2,id3的形式")
    private String pullDisposeReasonIds;

    private String associationLoadId;  // b_native_bill_load表被拉货对象 id


}
